<?php

/**
 * sfGuardUser form.
 *
 * @package    form
 * @subpackage sf_guard_user
 * @version    SVN: $Id: sfGuardUserForm.class.php 13001 2008-11-14 10:45:32Z noel $
 */
class step1ProfileForm extends BasesfGuardUserForm
{
  protected
    $pkName = null;

  public function configure()
  {
    parent::configure();
   


    unset(
      $this['last_login'],
      $this['first_name'],
      $this['last_name'],
      $this['created_at'],
      $this['salt'],
      $this['gender'],
      $this['email'],
      $this['algorithm'],
      $this['partner_id'],
      $this['is_active'],
      $this['is_online'],
      $this['is_video'],
      $this['is_partner'],
      $this['new_message'],
      $this['new_fav'],
      $this['new_interest'],
      $this['new_gift'],
      $this['time'],
      $this['is_photo'],
      $this['is_super_admin'],
      $this['sf_guard_user_group_list'],
      $this['birthday'],
      $this['height'],
      $this['ves'],
      $this['city'],
      $this['astrology_sign'],
      $this['zodiac'],
      $this['eye_color'],
      $this['hair_color'],
      $this['hair_lenght'],
      $this['hair_type'],
      $this['religion'],
      $this['language'],
      $this['drinking'],
      $this['smoking'],
      $this['profession'],
      $this['is_marital'],
      $this['have_child'],
      $this['wants_children'],
      $this['about_me'],
      $this['about_partner'],
      $this['best_time_of_watch'],
      $this['photo'],
      $this['add_language'],
      $this['add_child'],
      $this['education'],
      $this['introduction_letter'],
      $this['partner_age_to'],
      $this['partner_age_from'],
      $this['partner_height_to'],
      $this['partner_height_from'],
      $this['about_hobby'],
      $this['icq'],
      $this['adres'],
      $this['skype'],
      $this['have_child_partner'],
      $this['cmy_read'],
      $this['cmy_musik'],
      $this['cmy_rest'],
      $this['cmy_food'],
      $this['cmy_sport'],
      $this['cmy_harakter'],
      $this['account'],
      $this['is_partner'],
      $this['partner_id'],
      $this['is_top'],
      $this['is_vip'],
      $this['is_abon'],
      $this['full_profile'],
      $this['account'],
      $this['is_online'],
      $this['sesid'],
      $this['time'],
      $this['sf_guard_user_permission_list']
    );
    
     $lang = array('ru','en');
    
     $this->setWidgets(array(
      'id'              => new sfWidgetFormInputHidden(),
      'nickname'        => new sfWidgetFormInput(array(),array('size'=>25)),
      'email'        => new sfWidgetFormInput(array(),array('size'=>25)),
      'username'        => new sfWidgetFormInputHidden(array(),array('size'=>25)),
      'password'        =>   new sfWidgetFormInputPassword(),
      
      	
     ));
     
		
		 	$this->widgetSchema['country'] = new sfWidgetFormI18nSelectCountry(array('culture' =>sfContext::getInstance()->getUser()->getCulture()));
 
       
     	$this->validatorSchema ['password'] = new sfValidatorString(array('required' => false));
     	
    
	     $this->widgetSchema->setLabels(
    array(
      'username'  => __('Username'),
      'nickname'    => __('Username'),
      'avatar'   => __('Аватар'),  
      'icq' => __('Номер ICQ'),
      'skype' => __('Номер skype'),
      'email'     => __('E-mail'),
      'password'  => __('Пароль'),
      'country' => __('Страна'),
      'gender' => __('Пол'),
      'birthday' => __('Дата рождения'),
      'password2' => __('Повтор пароля')
    )
    ); 
	    
	    
	     $this->validatorSchema->setOption('allow_extra_fields', true);
	     $this->widgetSchema->setNameFormat('user[%s]');
	   
       
  }
}
